Shoes.app do
  background "#999"
  stroke "#000"
  x, y = nil, nil
  motion do |x2, y2|
    if x and y and (x != x2 or y != y2)
      append do
        line x, y, x2, y2
      end
    end
    x, y = x2, y2
  end
end
